import 'package:json_annotation/json_annotation.dart';

part 'rank_req.g.dart';

@JsonSerializable()
class RankInfoReq{
  final PageInfo pagination;

  RankInfoReq({this.pagination});

  factory RankInfoReq.fromJson(Map<String, dynamic> json) =>
      _$RankInfoReqFromJson(json);

  Map<String, dynamic> toJson() => _$RankInfoReqToJson(this);

}

@JsonSerializable()
class PageInfo{
  final int page;
  final int pageSize;
  final String type;

  PageInfo({this.type, this.page, this.pageSize});

  factory PageInfo.fromJson(Map<String, dynamic> json) =>
      _$PageInfoFromJson(json);

  Map<String, dynamic> toJson() => _$PageInfoToJson(this);


}